<?php
/**前台用户个人中心控制器
 * Created by PhpStorm.
 * User: zxj
 * Date: 17/5/2
 * Time: 上午10:52
 */

namespace App\Http\Controllers\Home;

use App\Models\Card;
use App\Models\User;

class UserController extends BaseController
{

    public function __construct(User $user,Card $card)
    {
        parent::__construct();
        $this->user = $user;
        $this->card = $card;
    }

    public function getOneUser(){
//        $uid = $request['mid'];
        //dd($request['mid']);
        $request['id']= request('mid');
        $res = $this->user->getUserById($request);
//        $res = $this->card->getCardRes($res['data']['primary_card_no']);
        return ajax_return($res);

    }

    /**
     * 获取会员充值记录
     */
    public function his_member_recharge_record($card){
        $data['cardno'] = $card;
        return $data;
    }

}
